var Router = require('restify-router').Router
var router = new Router()

var handler = require('./handler')

// 获取所有类型的统计个数
router.get('/count', function (req, res, next) {
  handler.get_count(req.params, res)
  return next()
})

router.get('/stock', function (req, res, next) {
  handler.get_stock(req.params, res)
  return next()
})

module.exports = router
